/**
 * Copyright(c)2012 Beijing PeaceMap Co.,Ltd.
 * All right reserved. 
 */
package com.pmc.dwa.security.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.pmc.dwa.common.utils.PaginationSupport;
import com.pmc.dwa.security.model.TRole;
import com.pmc.dwa.security.model.TSysoperLog;


/**
 * @description 角色/日志管理
 * @author aokunsang
 * @date 2013-1-9
 */
public interface IRoleLogService {

/*---------------------------日志管理--------------------------------------------*/
	public PaginationSupport<TSysoperLog> getAllOperLog(String strSql,int pageNumber,int pageSize,Date bdate,Date edate);
	public TSysoperLog getOperLog(String logid);
	public void delOperLogById(String logid);
	public void delAllOperLog();
/*------------------------角色管理--------------------------------------*/
	public PaginationSupport<TRole> getPagesTRole(String comments,int pageNumber,int pageSize);
	public List<Map<String,Object>> getAllSectForRole(String roleid);
	public TRole getRole(String roleid);
	public void delRole(String roleid);
	public void addRole(TRole role);
	public void editRole(TRole role);
	public boolean chkRoleSect(String roleid,String sectid);
	public void addSectInRole(String roleid,String sectid);
	public void delRoleSectById(String roleid,String sectid);
}
